/**
 * jims
 */
package com.jims.master.modules.doctor.service;

import com.jims.master.common.persistence.Page;
import com.jims.master.common.service.CrudService;
import com.jims.master.modules.doctor.dao.PregnantRecordsDao;
import com.jims.master.modules.doctor.entity.PregnantRecords;
import com.jims.master.modules.oper.entity.DiseaseManagement;
import com.jims.master.modules.sys.entity.Dict;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 孕妇手册-初诊记录Service
 * @author 王志明
 * @version 2017-07-18
 */
@Service
@Transactional(readOnly = true)
public class PregnantRecordsService extends CrudService<PregnantRecordsDao, PregnantRecords> {

	public PregnantRecords get(String id) {
		return super.get(id);
	}
	
	public List<PregnantRecords> findList(PregnantRecords PregnantRecords) {
		return super.findList(PregnantRecords);
	}
	
	public Page<PregnantRecords> findPage(Page<PregnantRecords> page, PregnantRecords PregnantRecords) {
		return super.findPage(page, PregnantRecords);
	}
	
	@Transactional(readOnly = false)
	public int save(PregnantRecords PregnantRecords) {
		return super.save(PregnantRecords);
	}
	
	@Transactional(readOnly = false)
	public int delete(PregnantRecords PregnantRecords) {
		return super.delete(PregnantRecords);
	}
    @Transactional(readOnly = false)
    public List<Dict> findListDict(String type, String[] ids, String q, String limit) {
        List<Dict> list = dao.findListDict(type,ids,q,limit);
        return list;
    }

    public String getOrgName(String orgId) {
        return dao.getOrgName(orgId);
    }
}